package com.example.userservice.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "用户数据传输对象，用于登录或注册")
public class UserDtoRegisterOrLogin {
    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "密码")
    private String password;
    public UserDtoRegisterOrLogin(String username, Long userId) {
        this.userName = username;
        this.userId = userId;
    }

}
